package Service.Impl;

import Dao.BaseDao;
import Dao.Impl.flowerDaoimpl;
import Dao.flowerDao;
import Service.flowerService;
import entity.Flower;

import java.util.List;

public class flowerServiceImpl implements flowerService {

     flowerDao flowerDao = new flowerDaoimpl();
    @Override
    public List<Flower> getAll() {
        return flowerDao.getAll();
    }
    @Override
    public int add(String name, String anothername, String property, int price, String production) {
        return flowerDao.add(name, anothername, property, price, production);
    }

    @Override
    public int update(int id, String name, String anothername, String property, int price, String production) {
        return flowerDao.update(id, name, anothername, property, price, production);
    }

    @Override
    public int delete(int id) {
        return flowerDao.delete(id);
    }
}
